package com.bio.action.forum;

import java.io.Serializable;

import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.opensymphony.xwork2.ActionSupport;

@Namespace("/forum")
@Results( {
		@Result(name = "list", location = "/WEB-INF/views/forum/listForums.jsp", type = "dispatcher"),
		@Result(name = "intoForum", location = "/WEB-INF/views/forum/intoForum.jsp", type = "dispatcher"),
		@Result(name = "listDetail", location = "/WEB-INF/views/forum/listDetail.jsp", type = "dispatcher"),
		@Result(name = "tolist", location = "forum!list", type = "redirect"),
		@Result(name = "edit", location = "/WEB-INF/views/forum/editForum.jsp", type = "dispatcher"),
		@Result(name = "add", location = "/WEB-INF/views/forum/addForum.jsp", type = "dispatcher")
		})
public class ForumAction extends ActionSupport implements Serializable{

	private static final long serialVersionUID = 336165974133512495L;

	public String list(){
		return "list";
	}
	
	public String intoForum(){
		return "intoForum";
	}
	
	public String listDetail(){
		return "listDetail";
	}
}
